// subpkg_user/pages/profile/profile.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    avatarUrl: "",
  },

  setNickName(e) {
    console.log(e);
  },

  setUserAvatar(e) {
    console.log(e);
    this.setData({
      avatarUrl: e.detail.avatarUrl,
    });
  },

  onShow() {
    const currentPages = getCurrentPages();
    // const prePage = currentPages[0];
    // prePage.onShow = () => {
    //   console.log("666677778888");
    // };
    console.log("profile页面", currentPages);
  },
});
